package se480.paf.filters;

import se480.paf.pipes.Item;
import se480.paf.pipes.Pipe;

/**
 * This is the interface for the active filters
 * 
 * @author mmichalak
 *
 */
public interface ActiveFilter extends Runnable {
	/*
	 * This is the main filter operation that executes the filter's
	 * functionality.
	 */
	public void process(Item item);
	
	public void setInPipe(Pipe<Item> pipe);
	public Pipe<Item> getInPipe();
	public void setOutPipe(Pipe<Item> pipe);
	public Pipe<Item> getOutPipe();
	
	public void setName(String name);
	public String getName();
	
	public void setSleep(int msSleep);
	public int getSleep();
}
